package org.caiotte.mapper;



import org.caiotte.domain.Department;
import org.caiotte.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    //新增
    void save(Department department);

    //修改
    void update(Department department);

    //删除
    void deleteById(Long id);

    //查询全部
    List<Department> loadAll();

    //查询一条
    Department loadById(Long id);

    //查询总条数
    Long queryCount(DepartmentQuery departmentQuery);

    //查询当前页数据
    List<Department> queryData(DepartmentQuery departmentQuery);


    //批量删除
    void batchRemove(List<Long> ids);

}
